<?php

declare(strict_types=1);

namespace Modules\Member\Models;

use Catch\Base\CatchModel as Model;
use Catch\Traits\DB\BaseOperate;
use Catch\Traits\DB\ScopeTrait;
use Catch\Traits\DB\Trans;
use Catch\Traits\DB\WithAttributes;


class MembersAddress extends Model
{

    use BaseOperate;
    use ScopeTrait;
    use Trans;
    use WithAttributes;

    protected $table = 'members_address';

    protected $fillable = [
        'id',
        'user_id',
        'name',
        'mobile',
        'detail',
        'is_default',
        'send_province',
        'send_city',
        'send_county',
        'send_town',
    ];
   public $timestamps = true;
    public function setIsDefaultAttribute($value)
    {
     return (string)$value;
    }

}
